const _ = require('lodash')
const { log } = console
// 多元函数 => 一元函数
const getSum = (a, b, c) => a + b + c

const curried = _.curry(getSum)

log(curried(1, 2, 3))
log(curried(1)(2, 3))
log(curried(1, 2)(3)) // 只剩余一个参数
